package com.jmlee.pojo;

import java.util.Date;

public class AItemImg {
    /*
    图片id
     */
    private Long id;
    /*
    商品id
     */
    private Long itemId;
    /*
    图片地址
     */
    private String url;
    /*
    图片顺序
     */
    private Integer sort;
    /*
    是否主图（封面图）
    1、是
    0、否
     */
    private Integer isMain;

    /*
    创建日期
     */
    private Date createdTime;

    public AItemImg() {
    }

    public AItemImg(Long id, Long itemId, String url, Integer sort, Integer isMain,Date createdTime) {
        this.id = id;
        this.itemId = itemId;
        this.url = url;
        this.sort = sort;
        this.isMain = isMain;
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return "AItemImg{" +
                "id=" + id +
                ", itemId=" + itemId +
                ", url='" + url + '\'' +
                ", sort=" + sort +
                ", isMain=" + isMain +
                ", createdTime=" + createdTime +
                '}';
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getIsMain() {
        return isMain;
    }

    public void setIsMain(Integer isMain) {
        this.isMain = isMain;
    }

}
